package com.zhtools.tree;

/**
 * Created by zhanghao on 2017/7/27.
 */
public abstract class AbstractTreeNode<T extends TreeNode> implements TreeNode<T> {
    private Integer level = 0;

    @Override
    public Integer deep() {
        return this.level;
    }

    @Override
    public void nextDeep() {
        this.level = this.level + 1;
    }
}
